package com.fruitshop.mapper;

import com.fruitshop.model.Fruit;

import java.util.List;

/**
* @author 32210
* @description 针对表【fruit(水果表)】的数据库操作Mapper
* @createDate 2024-06-20 13:17:06
* @Entity com.fruitshop.model.Fruit
*/
public interface FruitMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Fruit record);

    int insertSelective(Fruit record);

    Fruit selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Fruit record);

    int updateByPrimaryKey(Fruit record);

    //查询所有
    List<Fruit> selectAll();


    //查询指定id

    Fruit selectByName(String name);

    List<Fruit> selectByIds(List<Integer> fruitIds);
}
